/*
 * Copyright (c) $today.year-Now http://www.zxpnet.com All rights reserved.
 */

package com.zxp.common.core.validatecode;

import com.zxp.common.core.validatecode.bean.ValidateCode;
import com.zxp.common.core.validatecode.exception.ValidateCodeException;
import org.checkerframework.checker.units.qual.C;
import org.springframework.web.context.request.ServletWebRequest;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


/**
 * @author: shollin
 * @date: 2021/7/6/006 11:04
 */
public interface ValidateCodeServiceI {

    /**
     * 发送验证码
     * @param request 里面包含了HttpServletResponse
     * @throws Exception
     */
    void sendCode(ServletWebRequest request) throws Exception;

    /**
     * 校验验证码
     * @param request
     * @throws ValidateCodeException
     */
    void checkCode(ServletWebRequest request) throws ValidateCodeException;

}
